package com.letoken.platform.repo.admin.req.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author letokenlabs
 * @date 2022/11/23$
 */
@Data
@ApiModel(value = "修改后台管理账户请求对象", description = "修改后台管理账户请求对象")
public class UpdateAdminAccountReq {

    @ApiModelProperty(name = "adminUserId", value = "用户id", required = true, example = "1")
    @NotNull(message = "用户编号不能为空")
    private Integer adminUserId;

    @ApiModelProperty(name = "realName", value = "姓名", required = true, example = "张三")
    @NotBlank(message = "姓名不能为空")
    private String realName;

    @ApiModelProperty(name = "password", value = "密码", required = true, example = "123456")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(name = "username", value = "登录账号", required = true, example = "admin")
    @NotBlank(message = "登录账号不能为空")
    private String username;

    @ApiModelProperty(name = "adminRoleId", value = "角色Id", required = true, example = "1")
    @NotNull(message = "角色不能为空")
    private Integer adminRoleId;

}
